package com.ruoyi.returnMaterials.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产退料对象 erp_production_return_material
 * 
 * @author ruoyi
 * @date 2025-07-30
 */
public class ErpProductionReturnMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 单据类型 */
    @Excel(name = "单据类型")
    private String documentType;

    /** 来源单据 */
    @Excel(name = "来源单据")
    private String sourceDocument;

    /** 退料单号 */
    @Excel(name = "退料单号")
    private String returnCode;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String materialCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 实退数量 */
    @Excel(name = "实退数量")
    private BigDecimal actualReturnQty;

    /** 核销数量 */
    @Excel(name = "核销数量")
    private BigDecimal writeOffQty;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String auditStatus;

    /** 退料日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退料日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnDate;

    /** 退料人 */
    @Excel(name = "退料人")
    private String returnBy;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDocumentType(String documentType) 
    {
        this.documentType = documentType;
    }

    public String getDocumentType() 
    {
        return documentType;
    }

    public void setSourceDocument(String sourceDocument) 
    {
        this.sourceDocument = sourceDocument;
    }

    public String getSourceDocument() 
    {
        return sourceDocument;
    }

    public void setReturnCode(String returnCode) 
    {
        this.returnCode = returnCode;
    }

    public String getReturnCode() 
    {
        return returnCode;
    }

    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }

    public void setMaterialCode(String materialCode) 
    {
        this.materialCode = materialCode;
    }

    public String getMaterialCode() 
    {
        return materialCode;
    }

    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }

    public void setActualReturnQty(BigDecimal actualReturnQty) 
    {
        this.actualReturnQty = actualReturnQty;
    }

    public BigDecimal getActualReturnQty() 
    {
        return actualReturnQty;
    }

    public void setWriteOffQty(BigDecimal writeOffQty) 
    {
        this.writeOffQty = writeOffQty;
    }

    public BigDecimal getWriteOffQty() 
    {
        return writeOffQty;
    }

    public void setAuditStatus(String auditStatus) 
    {
        this.auditStatus = auditStatus;
    }

    public String getAuditStatus() 
    {
        return auditStatus;
    }

    public void setReturnDate(Date returnDate) 
    {
        this.returnDate = returnDate;
    }

    public Date getReturnDate() 
    {
        return returnDate;
    }

    public void setReturnBy(String returnBy) 
    {
        this.returnBy = returnBy;
    }

    public String getReturnBy() 
    {
        return returnBy;
    }

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("documentType", getDocumentType())
            .append("sourceDocument", getSourceDocument())
            .append("returnCode", getReturnCode())
            .append("specification", getSpecification())
            .append("materialCode", getMaterialCode())
            .append("materialName", getMaterialName())
            .append("actualReturnQty", getActualReturnQty())
            .append("writeOffQty", getWriteOffQty())
            .append("auditStatus", getAuditStatus())
            .append("returnDate", getReturnDate())
            .append("returnBy", getReturnBy())
            .append("createdBy", getCreatedBy())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("remark", getRemark())
            .toString();
    }
}
